<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <?= $show_code; ?>
        <title><?php echo $this->config->item('title_page'); ?></title>
    </head>
    <script>
        $(document).ready(function() {
            $('#btnBackPage').click(function() {
                parent.history.back();
                return false;
            });
        });</script>
    <body>
        <div class="panel panel-default body-contain">
            <div class="panel-heading"><span class="icon-g-cargo"></span>
                <strong> การจัดการอะไหล่รถยนต์ (Auto Parts Management)</strong>
            </div>
            <div class="panel-body">
                <?php $this->load->view('contains/menu_module_bar'); ?>
                <div class="panel panel-default">
                    <div class="panel-heading"><span class="glyphicon glyphicon-file"></span>
                        <strong>  ดูข้อมูลอะไหล่รถยนต์</strong>
                    </div>
                    <?php echo form_open_multipart('', 'class="form-horizontal"  method="post"') ?>
                    <div class="panel-body">
                        <div class="pull-left col-xs-12 col-md-8">
                            <form class="form-horizontal" role="form">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">รหัสอะไหล่</label>
                                    <div class="col-sm-9">
                                        <?= $lbl_code; ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">ชื่ออะไหล่</label>
                                    <div class="col-sm-9">
                                        <?= $lbl_name; ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">ประเภทหลัก</label>
                                    <div class="col-sm-5">
                                        <?= $lbl_main_type; ?>
                                    </div>
                                </div>
                                <div id="div_subType" class="form-group">
                                    <label class="col-sm-3 control-label">ประเภทย่อย</label>
                                    <div class="col-sm-5">
                                        <?= $lbl_sub_type; ?>
                                    </div>
                                </div>
                                <div id="div_brand" class="form-group">
                                    <label class="col-sm-3 control-label">ยี่ห้อ</label>
                                    <div class="col-sm-5">
                                        <?= $lbl_brand; ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">จำนวนคงเหลือ</label>
                                    <div class="col-sm-9">
                                        <?= $lbl_qty; ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">ราคา</label>
                                    <div class="col-sm-9">
                                        <div class="input-group">
                                            <?= $lbl_price; ?>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">แจ้งคงเหลือต่ำกว่า</label>
                                    <div class="col-sm-9">
                                        <div class="input-group">
                                            <?= $lbl_alert_below; ?>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">รายละเอียดเพิ่มเติม</label>
                                    <div class="col-sm-9">
                                        <?= $lbl_detail; ?>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-6">
                                        <button id="btnBackPage" type="button" class="btn btn-default">ย้อนกลับ</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="pull-left col-xs-6 col-md-4">
                            <div class="panel panel-default">
                                <div class="panel-heading"><span class="glyphicon glyphicon-picture"></span>
                                    <strong> อัพโหดภาพถ่าย</strong>
                                </div>
                                <div class="panel-body">
                                    <div class="form-group text-center">
                                        <?= $img_picture; ?>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php echo form_close(); ?>
            </div>
        </div>
    </body>
</html>
